<form id="registerId">

Email :<input type="email" name="uname" required /><br>
Password :<input type="text" name="email" required/><br>

<p><a href="#" onClick="submitForm();">Click Here to Submit</a></p>
</form>

<script>
  function submitForm(){
  alert("gello")
  var objFrm = document.getElementById('registerId');
  objFrm.method = "post";
  objFrm.action = "form-submit.php";
  objFrm.submit();
  }
</script>